package HomeWork01;

public class Test01 {
    public static void main(String[] args) {
            C a=new C();
            a.showA();
            a.showB();
    }
}
abstract class A{
    public int numa=10;
    public abstract void showA();
}
abstract class B extends A{
    public int numb=20;
    public abstract void showB();
}
class C extends B{
    @Override
    public void showA() {
        System.out.println(numa);
    }

    @Override
    public void showB() {
        System.out.println(numb);
    }
}